import request from "./http";

// /user/detail
// 获取用户详情
export function getDetail(params) {
    return request({
        method: "get",
        url: "/user/detail",
        params: params
    })
}

///user/account  获取账号信息
export function getAccount(params) {
    return request({
        method: "get",
        url: "/user/account",
        params: params
    })
}


//获取用户信息 , 歌单，收藏，mv, dj 数量
///user/subcount
export function getSubcount(params) {
    return request({
        method: "get",
        url: "/user/subcount",
        params: params
    })
}

// /获取用户等级信息
// /user/level
export function getLevel(params) {
    return request({
        method: "get",
        url: "/user/level",
        params: params
    })

}
//获取用户最近播放
// /user/record
// /user/record
export function getRecent(params) {
    return request({
        method: "get",
        url: "/user/record",
        params: params

    })
}

// 获取用户关注列表
export function getUserFollows(params){
    return request({
        url:"/user/follows",
        method:"get",
        // 注意:post 使用data
        // 注意:get 使用params
        params
    })
}


//粉丝
export function getUserFolloweds(params){
    return request({
        url:"/user/followeds",
        method:"get",
        params
    })
}

//收藏的歌手列表
export function getArtistSublist(params){
    return request({
        url:"/artist/sublist",
        method:"get",
        params
    })
}


//收藏的MV
export function getMvSublist(params){
    return request({
        url:"/mv/sublist",
        method:"get",
        params
    })
}

//推荐视频
export function getRelatedAllvideo(params){
    return request({
        url:"/related/allvideo",
        method:"get",
        params
    })
}

//云盘
export function getUserCloud(params){
    return request({
        url:"/user/cloud",
        method:"get",
        params
    })
}

//最近播放歌曲
export function getUserRecord(params){
    return request({
        url:"/user/record",
        method:"get",
        params
    })
}
// /record/recent/song
//喜欢的音乐列表
export function getLikelist(params){
    return request({
        url:"/likelist",
        method:"get",
        params
    })
}

//获取歌曲详情
export function getSongDetail(params){
    return request({
        url:"/song/detail",
        method:"get",
        params
    })
}

//获取用户歌单
export function getUserPlaylist(params){
    return request({
        url:"/user/playlist",
        method:"get",
        params
    })
}

//获取歌单详情
export function getPlaylistDetail(params){
    return request({
        url:"/playlist/detail",
        method:"get",
        params
    })
}


